package com.xuecheng.api.cms;

import com.xuecheng.framework.domain.cms.CmsTemplate;
import com.xuecheng.framework.domain.cms.request.QueryPageResult;
import com.xuecheng.framework.domain.cms.response.CmsPageResult;
import com.xuecheng.framework.domain.cms.response.CmsTemplateResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "cms模板页面管理接口",description = "cms模板页面管理接口 提供增,删,改,查")
public interface CmsTemplateControllerApi {

    @ApiOperation("分页查询模板页面列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="page",value="页码",required = true,paramType = "path",dataType = "int"),
            @ApiImplicitParam(name="size",value="每页记录数",required = true,paramType = "path",dataType = "int")
    })
    public QueryResponseResult findList(int page, int size, QueryPageResult queryPageResult);


    @ApiOperation("增加模板数据")
    public CmsTemplateResult add(CmsTemplate cmsTemplate);

    @ApiOperation("修改模板数据")
    public CmsTemplateResult update(String id,CmsTemplate cmsTemplate);

    @ApiOperation("删除模板数据")
    public ResponseResult del(String id);


}

